Hi, thanks for the response at first.
I've followed your advice and created separate XCFramework for every static library. This is a structure I'm having:
libStatic.xcframework: Info.plist ios-arm64 libStatic.a ios-x86_64-simulator libStatic.a
I don't include headers and leave it into the framework, because the library have so many C files and it is hard for me process which header belongs to concrete lib(Will try to fix that, could this leads to issue?)
Unfortunately here comes another issue. I've set ONLY_ACTIVE_ARCH to NO as I think the value should be(Is that correct by the way?) and there are warning and an error:
First the warning:
ignoring file libstatic.a, building for iOS Simulator-arm64 but attempting to link with file built for iOS Simulator-x86_64
Then the error:
Undefined symbols for architecture arm64:
"_RAND_seed", referenced from:
Which leads me to conclusion, that there is no support for arm64 simulator. I've tried to add a arm64 simulator binary, but in the xcframework generation comes this error:
Both ios-x86_64-simulator and ios-arm64-simulator represent two equivalent library definitions.
I was reading, that in this case we need to create fat binary with both arm64 and simulator slices.
Also was thinking should DTS be created for that.